package com.fly.service.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fly.mapper.FlightMapper;
import com.fly.pojo.Flight;
import com.fly.service.FlightService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class FlightServiceImpl extends ServiceImpl<FlightMapper, Flight> implements FlightService {
    @Override
    public void DeleteFlight(List<Integer> ids) {
        LambdaQueryWrapper<Flight> queryWrapper =new LambdaQueryWrapper<Flight>();


            queryWrapper.in(Flight::getFlightId,ids);
           this.remove(queryWrapper);

    }
}
